Hilary Dugan
Feb 5, 2016
library(maps)
?map
'world', 'usa', 'state''Canada' or 'California'?mapproject?mapproject ?map
c(latitude, longitude, rotation)TRUE or FALSETRUE or FALSE ?map
c(40,60)c(0,0,0,0)map('world',col='red4',mar=c(0,0,0,0)) #Default is albers equal-area
map('world', col='red4', mar=c(0,0,0,0))
map('world', regions = c('Ireland','Canada','Antarctica'), add=T, col='grey50', fill = T, border=F)
map('state', col='red4', mar=c(0,0,0,0))
map('state', regions = c('Wisconsin','California'), add=T, col='grey50', fill = T, border=F)
By surface
By property
- Mercator, Behrmann, Gall-Peters
map('world', col='red4', proj='cylequalarea', parameters=0, wrap=T,fill=T) # Lambert
N-S compression = cosine of the latitude (reciprocal of E-W stretching). Preserves area.
map('world', col='red4', proj='cylequalarea', parameters=45, wrap=T,fill=T) # Gall-Peters
N-S compression = cosine of the latitude (reciprocal of E-W stretching). Preserves area.
map('world', col='red4', proj='mollweide', res=0, fill=T, orientation = c(90,0,0))
map('world', col='red4', proj='simpleconic', parameters=c(20,50), res=0, orientation = c(90,0,0))
map('state',col='red4',proj='albers',parameters =c(30,50))
map('state',col='red4',proj='albers',parameters =c(10,70),add=T,fill=T)
map('world', col='red4', proj='simpleconic', parameters=c(20,50), res=0, orientation = c(90,0,0))
May be the oldest map projection, from 6th century BC
map('world', projection = 'orthographic', orientation = c(90,0,0))
map('world', projection = 'orthographic', orientation = c(-90,0,0))